VERSION 5.00
Begin VB.Form frmAlcohol 
   BackColor       =   &H00FFFFFF&
   Caption         =   "Alcohol Contents"
   ClientHeight    =   2670
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   3870
   Icon            =   "frmAlcohol.frx":0000
   KeyPreview      =   -1  'True
   LinkTopic       =   "Form1"
   ScaleHeight     =   2670
   ScaleWidth      =   3870
   StartUpPosition =   1  'CenterOwner
   Begin VB.Frame Frame1 
      BackColor       =   &H00FFFFFF&
      Caption         =   "Alcohol"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H000080FF&
      Height          =   2415
      Left            =   120
      TabIndex        =   6
      Top             =   120
      Width           =   3615
      Begin VB.ComboBox f40 
         Height          =   315
         ItemData        =   "frmAlcohol.frx":08CA
         Left            =   1440
         List            =   "frmAlcohol.frx":08DD
         TabIndex        =   0
         Top             =   360
         Width           =   1815
      End
      Begin VB.ComboBox f41 
         Height          =   315
         ItemData        =   "frmAlcohol.frx":091B
         Left            =   1440
         List            =   "frmAlcohol.frx":092E
         TabIndex        =   1
         Top             =   720
         Width           =   1815
      End
      Begin VB.TextBox f52 
         Height          =   315
         Left            =   1440
         TabIndex        =   2
         Top             =   1080
         Width           =   1815
      End
      Begin VB.TextBox f42 
         Height          =   315
         Left            =   1440
         TabIndex        =   3
         Top             =   1440
         Width           =   1815
      End
      Begin VB.CommandButton cmdCancel 
         Appearance      =   0  'Flat
         BackColor       =   &H00E0E0E0&
         Caption         =   "Cancel"
         Height          =   315
         Left            =   2040
         MaskColor       =   &H0080C0FF&
         Style           =   1  'Graphical
         TabIndex        =   5
         Top             =   1920
         UseMaskColor    =   -1  'True
         Width           =   1215
      End
      Begin VB.CommandButton cmdSave 
         Appearance      =   0  'Flat
         BackColor       =   &H00E0E0E0&
         Caption         =   "Save/Exit"
         Height          =   315
         Left            =   360
         MaskColor       =   &H0080C0FF&
         Style           =   1  'Graphical
         TabIndex        =   4
         Top             =   1920
         UseMaskColor    =   -1  'True
         Width           =   1215
      End
      Begin VB.Label Label1 
         Alignment       =   1  'Right Justify
         BackColor       =   &H00FFFFFF&
         Caption         =   "Contents:"
         BeginProperty Font 
            Name            =   "MS Sans Serif"
            Size            =   8.25
            Charset         =   0
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   255
         Left            =   240
         TabIndex        =   10
         Top             =   420
         Width           =   1095
      End
      Begin VB.Label Label2 
         Alignment       =   1  'Right Justify
         BackColor       =   &H00FFFFFF&
         Caption         =   "Packaging:"
         BeginProperty Font 
            Name            =   "MS Sans Serif"
            Size            =   8.25
            Charset         =   0
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   255
         Left            =   240
         TabIndex        =   9
         Top             =   780
         Width           =   1095
      End
      Begin VB.Label Label3 
         Alignment       =   1  'Right Justify
         BackColor       =   &H00FFFFFF&
         Caption         =   "Quantity:"
         BeginProperty Font 
            Name            =   "MS Sans Serif"
            Size            =   8.25
            Charset         =   0
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   255
         Left            =   240
         TabIndex        =   8
         Top             =   1140
         Width           =   1095
      End
      Begin VB.Label Label4 
         Alignment       =   1  'Right Justify
         BackColor       =   &H00FFFFFF&
         Caption         =   "Volume:"
         BeginProperty Font 
            Name            =   "MS Sans Serif"
            Size            =   8.25
            Charset         =   0
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   255
         Left            =   240
         TabIndex        =   7
         Top             =   1500
         Width           =   1095
      End
   End
End
Attribute VB_Name = "frmAlcohol"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'---------------------------------------------------------------------------------------
' Procedure : cmdCancel_Click()
' DateTime  : 2/18/2004
' Purpose   : Cancel button hides form
'---------------------------------------------------------------------------------------
'
Private Sub cmdCancel_Click()
    Me.Hide
    frmShip.SetFocus
End Sub
'---------------------------------------------------------------------------------------
' Procedure : cmdSave_Click()
' DateTime  : 2/18/2004
' Purpose   : Save button assigns Alcohol fields to global vars
'---------------------------------------------------------------------------------------
'
Private Sub cmdSave_Click()
    g_str40 = Left(f40, 1)
    g_str41 = Left(f41, 2)
    g_str42 = RemoveSpecial(f42)
    g_str52 = f52
    Me.Hide
    frmShip.SetFocus
End Sub
'---------------------------------------------------------------------------------------
' Procedure : f40_Change()
' DateTime  : 8/9/2004
' Purpose   : Calls a routine to populate the entire text of selected contents.
'---------------------------------------------------------------------------------------
'
Private Sub f40_Change()
    If Len(f40) >= 1 Then
        Call SetComboSelection(f40, f40)
    End If
End Sub
'---------------------------------------------------------------------------------------
' Procedure : f41_Change()
' DateTime  : 8/9/2004
' Purpose   : Calls a routine to populate the entire text of selected packaging.
'---------------------------------------------------------------------------------------
'
Private Sub f41_Change()
    If Len(f41) >= 2 Then
        Call SetComboSelection(f41, f41)
    End If
End Sub

'---------------------------------------------------------------------------------------
' Procedure : f42_Change()
' DateTime  : 2/18/2004
' Purpose   : Volume is numeric only decimal allowed
'---------------------------------------------------------------------------------------
'
Private Sub f42_Change()
    Call NumericOnly(f42)
End Sub
'---------------------------------------------------------------------------------------
' Procedure : cmdCancel_Click()
' DateTime  : 2/18/2004
' Purpose   : Quantity is numeric only
'---------------------------------------------------------------------------------------
'
Private Sub f52_Change()
    Call NumericOnly(f52, False)
End Sub

Private Sub Form_Activate()
    f40.SetFocus
End Sub

'---------------------------------------------------------------------------------------
' Procedure : Form_KeyDown()
' DateTime  : 2/17/2005
' Purpose   : Enter key pressed sends a TAB to move to next field
'---------------------------------------------------------------------------------------
'
Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
    If Not TypeOf Me.ActiveControl Is CommandButton Then
        If Shift = 0 And KeyCode = 13 Then
            SendKeys "{TAB}"
        End If
    End If
End Sub

